﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ByrForumAPI.MetaData
{
    public class Refer
    {
        //提醒编号，此编号用于提醒的相关操作
        [JsonProperty("index")]
        public int Index { get; internal set; }

        //提醒文章的id
        [JsonProperty("id")]
        public int ID { get; internal set; }

        //提醒文章的group id 
        [JsonProperty("group_id")]
        public int GroupId { get; internal set; }

        //提醒文章的reply id
        [JsonProperty("reply_id")]
        public int ReplyId { get; internal set; }

        //提醒文章所在版面 
        [JsonProperty("board_name")]
        public string BoardName { get; internal set; }

        //提醒文章的标题  
        [JsonProperty("title")]
        public string Title { get; internal set; }
        
        //提醒文章的发信人，此为user元数据，如果user不存在则为用户id  
        [JsonProperty("user")]
        public User User { get; internal set; }

        //发出提醒的时间 
        [JsonProperty("time")]
        public int Time { get; internal set; }

        //提醒是否已读 
        [JsonProperty("is_read")]
        public bool IsRead { get; internal set; }

    }
}
